<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderAddLog extends Migrator
{
    public function up()
    {

        $this->table('coupon_order')
            ->addColumn('log',"string",['limit' => 500,'default' =>'','comment'=>"订单日志"])
            ->save();
    }

    public function down()
    {
        $this->table('coupon_order')->removeColumn('log');
    }
}
